package com.zheng.draft.dao.model;

import java.io.Serializable;

public class DraftInfo implements Serializable {
    /**
     * 票据主键
     *
     * @mbg.generated
     */
    private Integer draftId;

    /**
     * 票据号
     *
     * @mbg.generated
     */
    private String draftNo;

    /**
     * 出票人名称
     *
     * @mbg.generated
     */
    private String draftName;

    private static final long serialVersionUID = 1L;

    public Integer getDraftId() {
        return draftId;
    }

    public void setDraftId(Integer draftId) {
        this.draftId = draftId;
    }

    public String getDraftNo() {
        return draftNo;
    }

    public void setDraftNo(String draftNo) {
        this.draftNo = draftNo;
    }

    public String getDraftName() {
        return draftName;
    }

    public void setDraftName(String draftName) {
        this.draftName = draftName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", draftId=").append(draftId);
        sb.append(", draftNo=").append(draftNo);
        sb.append(", draftName=").append(draftName);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DraftInfo other = (DraftInfo) that;
        return (this.getDraftId() == null ? other.getDraftId() == null : this.getDraftId().equals(other.getDraftId()))
            && (this.getDraftNo() == null ? other.getDraftNo() == null : this.getDraftNo().equals(other.getDraftNo()))
            && (this.getDraftName() == null ? other.getDraftName() == null : this.getDraftName().equals(other.getDraftName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDraftId() == null) ? 0 : getDraftId().hashCode());
        result = prime * result + ((getDraftNo() == null) ? 0 : getDraftNo().hashCode());
        result = prime * result + ((getDraftName() == null) ? 0 : getDraftName().hashCode());
        return result;
    }
}